package org.example;

import org.example.config.AnnotationConfig;
import org.example.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class UserTest {
    public  static  void  main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AnnotationConfig.class);
        UserService userService = context.getBean(UserService.class);
        userService.addUser("张三");
        userService.deleteUser("张三");
        userService.updateUser("张三");

    }
}
